export default class App {
  /**
   * 应用构造函数
   * @param {HTMLDivElement} dom
   */
  constructor(dom) {
    const canvas = document.createElement("canvas");
    canvas.width = dom.clientWidth;
    canvas.height = dom.clientHeight;
    dom.appendChild(canvas);
    const ctx = canvas.getContext("2d");
    ctx.fillStyle = "red";
    ctx.fillRect(0, 0, 200, 200);
  }
}
